package cn.doourbest.learnspring.logger;

import org.slf4j.Logger;
import org.slf4j.Marker;

import java.util.Optional;
import java.util.function.Supplier;

/**
 * @description:
 * @author: zhangsc
 * @create: 2019/12/3
 */
public class MyLogger {

    private Logger logger;

    private void error(Supplier<String> supplier){
        if(logger.isErrorEnabled()){
            logger.error(supplier.get());
        }
    }



    public static void main(String[] args) {

        MyLogger myLogger = new MyLogger();
        myLogger.error( ()->"ss" + "ssdf" );
    }

}
